const path=require("path")
module.exports={
    mode: "development",
    entry: "./t.ts",
    output: {
        filename: "tt.js",
        path:path.resolve(__dirname,"dist"),
        clean:true
    },
    resolve: {
        extensions: [".ts",".js",".json"],
        alias: {
            "@":path.resolve(__dirname,"")
        },
        // fallback
        fallback: {
            fs:false
        }
    },
    module: {
        rules: [
            {
                test: /\.ts$/,
                use:"ts-loader",
                exclude: /node_modules/
            }
        ]
    }
}